/**
 * 功能描述
 */
define(function (require, exports, module) {
    //引入视图基类
    var ELView = require("elview");

    //assets
    var template = require("./assets/tpl/alliancesettlement_main.tpl");
    require("./assets/css/alliancesettlement_main.css");

    var allianceSettlementSubnavComp = require("./component/allianceSettlementSubnavComp");
    var allianceSettlementGridComp = require("./component/allianceSettlementGridComp");
    var allianceSettlementFormComp = require("./component/allianceSettlementFormComp");
    var allianceSettlementEditGrid = require("./component/allianceSettlementEditGrid");
    var allianceSettlementEditGridComp = require("./component/allianceSettlementEditGridComp");
    
    
    var App = ELView.extend({
        attrs: {
            template: template
        },
        initComponent: function (params, widget) {
        	
        	allianceSettlementSubnavComp.initComponent(params, widget);
        	allianceSettlementGridComp.initComponent(params, widget);
        	allianceSettlementFormComp.initComponent(params, widget);
        	allianceSettlementEditGrid.initComponent(params, widget);
        	allianceSettlementEditGridComp.initComponent(params, widget);
        	
        },
        afterInitComponent: function (params, widget) {
        	
      		widget.get("grid").refresh();
        	
        }
    });

    module.exports = App;
});
